﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:surfnet ="clr-namespace:TableTopWidgets;assembly=TableTopWidgets"
        xmlns:local ="clr-namespace:TabletopWidgetTestApp"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="TabletopWidgetTestApp.MainWindow"
        Name="theWindow" Height="600" Width="600" Title="A Window" WindowStyle="None" WindowState="Maximized"
        MouseDown="mouseDown" MouseUp="mouseUp" SizeChanged="Window_SizeChanged">
    <Window.Resources>
        <Style x:Key="BorderButton" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Grid Background="Gray"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    
    <Grid Name="gridMain">
        <Button HorizontalAlignment="Left" VerticalAlignment="Top" Width="20" Height="{Binding ElementName=gridMain, Path=ActualHeight}" Style="{DynamicResource BorderButton}"/>
        <Button HorizontalAlignment="Right" VerticalAlignment="Top" Width="20" Height="{Binding ElementName=gridMain, Path=ActualHeight}" Click="RightButtonHandler" Style="{DynamicResource BorderButton}"/>
        <Button VerticalAlignment="Top" HorizontalAlignment="Left" Height="20" Width="{Binding ElementName=gridMain, Path=ActualWidth}" Click="TopButtonHandler" Style="{DynamicResource BorderButton}"/>
        <Button VerticalAlignment="Bottom" HorizontalAlignment="Left" Height="20" Width="{Binding ElementName=gridMain, Path=ActualWidth}" Click="BottomButtonHandler" Style="{DynamicResource BorderButton}"/>
        <local:RNTWindow/>
        <local:BorderMenu VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Height="0" Width="0" x:Name="xBorderMenu"/>
        <local:ZoomMenu x:Name="zoomMenu" Visibility="Collapsed"/>
    </Grid>
    
</Window>
